window.onload = function(){
	var password = 'Yeah_you_have_got_it!';
	document.getElementById('psw1').value = password;

	document.getElementById('change').onclick = function(){
		var type =  document.getElementById('type').value;
		//Only text can show password
		//Altough other string can also take input to text too
		type.toLowerCase() === 'text' ? document.getElementById('psw1').type = type : 0;
	};
	document.getElementById('done').onclick = function(){
		if( document.getElementById('psw2').value === password ){
			alert('sample url');
		}else{
			alert('You got the wrong password');
		}
	};
};
